package com.jzit168.module_devices.network

import com.jzit168.library_common.common.API.IP
import com.jzit168.library_common.common.Constant.TOKEN
import com.jzit168.library_retrofit.RetrofitFactory
import com.jzit168.library_retrofit.interceptors.TokenInterceptor
import com.jzit168.library_utils.MMKVUtil

/**
 *@Desc:
 *@Author: Android Developer
 *@Date: 2020/10/26
 *
 **/
class APIManager {

    private val retrofit by lazy {
        RetrofitFactory.create(
            IP,
            APIService::class.java,
            TokenInterceptor(MMKVUtil.getString(TOKEN))
        )
    }

}